how to build a rest api with node js